<%-- 
    Document   : index
    Created on : 14/05/2013, 18:16:15
    Author     : Nagata
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Interatividade a um Click</title>
        <link href="css/style.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="js/jquery.js"></script>
        <script src="js/validation.js"></script>
    </head>
    <body>
        <div class="container">
            <div class="menu">
                <img src="img/logo.png" style="width:150px;margin-bottom: 30px;">
                <ul>
                    <li class="principal">Administrador</li>
                    <li class="item"><a href="CarregarAdministrador">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                    <li class="principal">Generos</li>
                    <li class="item"><a href="index.jsp?page=generos">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                    <li class="principal">Jogos</li>
                    <li class="item"><a href="index.jsp?page=cadastraradministrador">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                    <li class="principal">Programas</li>
                    <li class="item"><a href="index.jsp?page=cadastraradministrador">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                    <li class="principal">Perguntas</li>
                    <li class="item"><a href="index.jsp?page=cadastraradministrador">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                    <li class="principal">Perguntas Respostas</li>
                    <li class="item"><a href="index.jsp?page=cadastraradministrador">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                    <li class="principal">Jogos Programas</li>
                    <li class="item"><a href="?page=cadastraradministrador">Cadastrar</a></li>
                    <li class="item"><a href="">Listar</a></li>
                </ul>
                
            </div>
            <div class="conteudo">
                <%
                    String p;
                    if (request.getParameter("page") != null) {
                        p = request.getParameter("page");
                    } else {
                        p = "home";
                    }
                %>
                <jsp:include page='<%= p + ".jsp"%>' /> 

            </div>
        </div>
    </body>
</html>
